import { Pipe, PipeTransform } from '@angular/core';

/**
 * Generated class for the BankShowPipe pipe.
 *
 * See https://angular.io/api/core/Pipe for more info on Angular Pipes.
 */
@Pipe({
  name: 'bankShow',
})
export class BankShowPipe implements PipeTransform {
  /**
   * Takes a value and makes it lowercase.
   */
  transform(bank:string) {
    if(bank && bank.length>4){
      return bank.substr(bank.length-4,4)
    }else return bank
  }
}
